﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ClassProject.DAL;

namespace ClassProject.BAL
{
    class SupportBAL
    {
        SupportDAL supportDAL = new SupportDAL();

        public SupportBAL()
        {
            
        }

        public int Insert_BAL()
        {
            try
            {
                return supportDAL.Insert();
            }
            catch (Exception)
            {
                throw;
            }finally
            {
                supportDAL = null;
            }
        }
        public int Update_BAL()
        {
            try
            {
                return supportDAL.Update();
            }
            catch (Exception)
            {
                throw;
            }
            finally
            {
                supportDAL = null;
            }
        }
        public int Delete_BAL()
        {
            try
            {
                return supportDAL.Delete();
            }
            catch (Exception)
            {
                throw;
            }
            finally
            {
                supportDAL = null;
            }
        }
    }
}
